package com.ruoyi.etp.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.etp.mapper.EtpOrganizationPerformanceMapper;
import com.ruoyi.etp.domain.EtpOrganizationPerformance;
import com.ruoyi.etp.service.IEtpOrganizationPerformanceService;

/**
 * 员工质检得分情况分析Service业务层处理
 * 
 * @author xmj
 * @date 2025-09-12
 */
@Service
public class EtpOrganizationPerformanceServiceImpl implements IEtpOrganizationPerformanceService 
{
    @Autowired
    private EtpOrganizationPerformanceMapper etpOrganizationPerformanceMapper;

    /**
     * 查询员工质检得分情况分析
     * 
     * @param id 员工质检得分情况分析主键
     * @return 员工质检得分情况分析
     */
    @Override
    public EtpOrganizationPerformance selectEtpOrganizationPerformanceById(Long id)
    {
        return etpOrganizationPerformanceMapper.selectEtpOrganizationPerformanceById(id);
    }

    /**
     * 查询员工质检得分情况分析列表
     * 
     * @param etpOrganizationPerformance 员工质检得分情况分析
     * @return 员工质检得分情况分析
     */
    @Override
    public List<EtpOrganizationPerformance> selectEtpOrganizationPerformanceList(EtpOrganizationPerformance etpOrganizationPerformance)
    {
        return etpOrganizationPerformanceMapper.selectEtpOrganizationPerformanceList(etpOrganizationPerformance);
    }

    /**
     * 新增员工质检得分情况分析
     * 
     * @param etpOrganizationPerformance 员工质检得分情况分析
     * @return 结果
     */
    @Override
    public int insertEtpOrganizationPerformance(EtpOrganizationPerformance etpOrganizationPerformance)
    {
        return etpOrganizationPerformanceMapper.insertEtpOrganizationPerformance(etpOrganizationPerformance);
    }

    /**
     * 修改员工质检得分情况分析
     * 
     * @param etpOrganizationPerformance 员工质检得分情况分析
     * @return 结果
     */
    @Override
    public int updateEtpOrganizationPerformance(EtpOrganizationPerformance etpOrganizationPerformance)
    {
        etpOrganizationPerformance.setUpdateTime(DateUtils.getNowDate());
        return etpOrganizationPerformanceMapper.updateEtpOrganizationPerformance(etpOrganizationPerformance);
    }

    /**
     * 批量删除员工质检得分情况分析
     * 
     * @param ids 需要删除的员工质检得分情况分析主键
     * @return 结果
     */
    @Override
    public int deleteEtpOrganizationPerformanceByIds(Long[] ids)
    {
        return etpOrganizationPerformanceMapper.deleteEtpOrganizationPerformanceByIds(ids);
    }

    /**
     * 删除员工质检得分情况分析信息
     * 
     * @param id 员工质检得分情况分析主键
     * @return 结果
     */
    @Override
    public int deleteEtpOrganizationPerformanceById(Long id)
    {
        return etpOrganizationPerformanceMapper.deleteEtpOrganizationPerformanceById(id);
    }
}
